/**
 * 编写一个java程序在屏幕上输出1！+2！+3！+??+10！的和。
 */
public class ForTest {
    public static void main(String[] args) {
        int mul=0;
        int sum=0;
        for (int i = 1; i <= 10; i++) {
            mul = 1;
            for (int j = 1; j <=i; j++) {
                mul = mul*j;
            }
            sum += mul;
        }
        System.out.println("1！+2！+3！+??+10！的和:"+sum);
    }
}
